package com.hackerrank.www.javap;

import java.util.Scanner;

/**
 * Created by 27340 on 2017/5/14.
 */
public class Loops2 {
    public static void main(String []argh){
        Scanner in = new Scanner(System.in);
        int t=in.nextInt();
        for(int i=0;i<t;i++){
            int a = in.nextInt();
            int b = in.nextInt();
            int n = in.nextInt();
            for(int index=0;index<n;index++){
                System.out.print((int)(a+b*(Math.pow(2,index+1)-1))+" ");
            }
            System.out.println("");
        }
        in.close();
    }
}
